package com.doubao.doubao_admin.model.entity;

import com.baomidou.mybatisplus.annotation.*;
//import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
//import org.springframework.security.core.GrantedAuthority;
//import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.Date;

@Builder
@TableName("bms_billboard")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)//链式构造器
//@ApiModel("统一响应对象")
public class BmsBillboard implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    /**
     * 公告牌
     */
    @TableField("content")
    private String content;
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    /**
     * 公告时间
     */
    private Date createTime;
    @Builder.Default
    @TableField("show")
    /**
     * 1.展示中 0.过期
     */
    private boolean isShow = false;
}
